cmake_minimum_required(VERSION 3.22)

project(writetodb VERSION 1.0)

set(CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_CXX_STANDARD 11)
set(mydir ${PROJECT_SOURCE_DIR}/../../)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${mydir}/bin/plugins)

include_directories(${mydir}/src)

message(STATUS "PROJECT_SOURCE_DIR is " ${mydir})

add_library(writetodb SHARED
    WriteToDB.h
    WriteToDB.cpp
    ${mydir}/src/FormatMessage.h
    ${mydir}/src/FormatMessage.cpp)

